﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business_Layer;

namespace Control_Layer
{
    // See UseCase:
    // UCD06-SELECTIONS (01)
    public class CCSelectMindmap
    {
        private Service service;
        private Project project;

        public CCSelectMindmap()
        {
            service = Service.GetInstance;
            project = service.GetProject;
        }

        /// <summary>
        /// Returns a list with all mindmap names.
        /// </summary>
        /// <returns></returns>
        public List<string> GetMindmaps()
        {
            return project.MindmapNames;
        }

        /// <summary>
        /// Selects a mindmap.
        /// </summary>
        /// <param name="id"></param>
        public void SelectMindmap(int id)
        {
            project.ChangeMindmap(id);
        }
    }
}
